Purpose: This study aimed to investigate the impact of risk management (RM) and its components on the implementation of knowledge management (KM) in Sahneh municipality, Iran. The shift in municipal approaches from service-oriented to market-oriented and project-oriented has increased the need for usable management of new knowledge and information. In this context, the main objective of the present research is to examine the role of risk management in improving the implementation of knowledge management in these organizations.Method: This research was conducted using a mixed-methods approach (both quantitative and qualitative). The statistical population consisted of 255 employees of Sahneh municipality, from which 150 were selected using stratified random sampling. Data collection tools included two standardized questionnaires: the knowledge management Questionnaire of Choumi Tseng and the Risk management Questionnaire of Samimi, with their reliability confirmed by Cronbach's alpha test. In the qualitative part of the study, semi-structured interviews were conducted with key stakeholders and experts within Sahneh municipality to identify specific challenges and risks associated with KM implementation. In the quantitative part, the standardized questionnaires were distributed to the selected sample, and the collected data were analyzed using SPSS and AMOS software. Statistical techniques such as regression analysis, correlation coefficients, and ANOVA were employed to examine the relationships between RM components and KM success.Findings: The findings indicated that RM components have a significant impact on the success of KM implementation. The most important challenges in implementing KM in Sahneh municipality included cultural resistance among employees to sharing knowledge, lack of technological infrastructure, and inadequate training programs. The analysis showed that effective RM can help mitigate these challenges and enhance KM implementation. Moreover, the results demonstrated a positive correlation between RM components and KM success. The study revealed that factors such as risk identification and assessment, regular training programs on RM and KM, and providing appropriate technological infrastructure play a crucial role in improving KM. Additionally, fostering a suitable culture and encouraging employees to share knowledge through reward and incentive systems can contribute to greater KM success.Conclusion: The research concluded that RM plays a vital role in the successful implementation of KM, especially in dynamic and project-based environments like Iranian municipalities. It is recommended that organizations adopt integrated RM and KM frameworks to optimize their knowledge assets and enhance overall performance. Implementing an integrated approach to RM and KM can help identify and mitigate risks while maximizing opportunities. Future research should explore specific mechanisms through which RM influences KM in various organizational contexts and develop appropriate strategies for different sectors. This study highlights the necessity of appropriate educational and cultural programs to encourage employees to share knowledge in similar organizations. Additionally, providing adequate technological infrastructure and implementing optimal KM systems are essential. Furthermore, establishing reward and incentive systems to encourage employees to share knowledge and information is recommended.